package com.easybuy.mapper;

import com.easybuy.bean.EasybuyProductCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EasybuyProductCategoryMapper {
    //根据id查询
    EasybuyProductCategory findByPk(Integer id);
    //根据name
    EasybuyProductCategory findByName(String name);
    List<EasybuyProductCategory> findByPId(Integer id);
    //查询全部
    List<EasybuyProductCategory> all();
    //分页查询
    List<EasybuyProductCategory> listByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);
    //增加
    int save(EasybuyProductCategory ebProductCategory);
    //修改
    int updateByPk(EasybuyProductCategory ebProductCategory);
    //删除
    int deleteByPk(int epcId);
    //查父类
    List<EasybuyProductCategory> fP();
    //查子类
    List<EasybuyProductCategory> fS();
    int countAll();
    //删除
    int deleteByepid(int Id);


}
